From: Keir Fraser Date: Fri, 11 Jun 2010 15:59:22 +0000 (+0100) Subject: x86 amd: Fix after MSR cleanup X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11936 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=6f394524c2ac1db90e03ad67d4b1c71885e95699;p=xen.git x86 amd: Fix after MSR cleanup Signed-off-by: Christoph Egger --- diff --git a/xen/arch/x86/cpu/amd.c b/xen/arch/x86/cpu/amd.c index 524a52f69d..24e6c2da26 100644 --- a/xen/arch/x86/cpu/amd.c +++ b/xen/arch/x86/cpu/amd.c @@ -243,8 +243,8 @@ static void disable_c1e(void *unused) * but we safely catch the #GP in that case. */ if ((rdmsr_safe(MSR_K8_ENABLE_C1E, msr_content) == 0) && - (msr_content & (3u << 27)) && - (wrmsr_safe(MSR_K8_ENABLE_C1E, msr_content & ~(3u << 27)) != 0)) + (msr_content & (3ULL << 27)) && + (wrmsr_safe(MSR_K8_ENABLE_C1E, msr_content & ~(3ULL << 27)) != 0)) printk(KERN_ERR "Failed to disable C1E on CPU#%u (%16"PRIx64")\n", smp_processor_id(), msr_content); }